home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c,comp.os.os2.programmer.misc
- Path: news.fyi.net!news
- From: fireresq@fyi.net
- Subject: redefining stdout and stderr
- X-Nntp-Posting-Host: 204.179.83.8
- Message-ID: <DKw9Cv.2x4@fyi.net>
- Sender: news@fyi.net (News User)
- Reply-To: fireresq@fyi.net
- Organization: FYI Networks
- X-Newsreader: IBM NewsReader/2 v1.2
- Date: Tue, 9 Jan 1996 03:22:07 GMT
-
- everyting I am doing is running on OS/2 Warp Connect and using the IBM
- Set++ compiler.
-
- I have a program that I have converted form an exe to a DLL. I used many
- printf's for debug and status information.
-
- What I want to do is cause stdout and stderr to go to a file but since
- this dll will be called from VisualAge I cannot redirect the output with >.
-
- I need to change the assocation of stdout and stderr programaticly. I
- would be open for suggestions.
-
- I need a way to close stdout and stderr. then reopen them redircted to a
- file from inside my dll.
-
- Thanks in advance!
- Mark Russell.
-